
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.TreeSet;

public class C1_11_8 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        TreeSet<Integer> ts = new TreeSet<>();
        int n = Integer.parseInt(br.readLine());
        String[] strs = br.readLine().split(" ");
        for (int i = 0; i < n; i++) {
            ts.add(Integer.parseInt(strs[i]));
        }
        int tmp = ts.size();
        for (int i = 0; i < tmp; i++) {
            System.out.print(ts.pollFirst() + " ");
        }
    }
}
